<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FC24 MOD BY LAOSIJI</title>
</head>
<style>
    @font-face {
        font-family: "Inter";
        src: url("./font/font.woff2") format("woff2");
    }
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html,body {
        height: 100%;
        width: 100%;
        /* font-family: 'Inter'; */
    }

    .flex-center {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #app {
        height: 100%;
        color: #fff;
        background: url(./image/bg3.jpg) no-repeat;
        background-size: cover;
        overflow: auto;
        position: relative;
    }

    .full-h {
        height: 100%;
    }

    .text-box {
        width: 50%;
    }

    .img-box {
        width: 50%;
        position: relative;
    }

    .img-box img {
        height: auto;
        width: 100%;
        object-position: center center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    img {
        height: 100%;
        width: 100%;
    }

    .logo {
        height: 60px;
        width: 100%;
        /* display: flex;
        width: 100%;
        justify-content: flex-start;
        padding-left: 40px; */
    }

    .logo img {
        /* width: auto; */
    }

    .flex-column {
        flex-direction: column;
    }

    .update-box {
        padding: 20px;
        max-width: 90%;
    }

    .title {
        font-size: 23px;
        font-weight: 600;
        color: #00fc7f;
    }

    .content {
        line-height: 1.6;
        margin-top: 10px;
    }

    .author {
        font-size: 15px;
        color: #00fc7f;
        position: fixed;
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        font-family: 'Inter';
    }

    .spirit {
        pointer-events: none;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 256px;
        height: 256px;
        background: url(./image/bg2.png);
        background-repeat: no-repeat;
        /* background-size: 70%; */
        overflow: hidden;
        /* animation: spirit 15s steps(168) infinite; */
        animation: spirit1 0.5s steps(13), 
                    spirit2 0.5s 0.5s steps(13), 
                    spirit3 0.5s 1s steps(13), 
                    spirit4 0.5s 1.5s steps(13),
                    spirit5 0.5s 2s steps(13), 
                    spirit6 0.5s 2.5s steps(13), 
                    spirit7 0.5s 3s steps(13),
                    spirit8 0.5s 3.5s steps(13), 
                    spirit9 0.5s 4s steps(13), 
                    spirit10 0.5s 4.5s steps(13),
                    spirit11 0.5s 5s steps(13), 
                    spirit12 0.5s 5.5s steps(13);
        /* animation-direction:reverse ; */
        /* animation-iteration-count: 1; */
    }

    @keyframes spirit1 {
        from {
            background-position: 0 0;
        }

        to {
            background-position: -3328px 0;
        }
    }

    @keyframes spirit2 {
        from {
            background-position: 0 -256px;
        }

        to {
            background-position: -3328px -256px;
        }
    }

    @keyframes spirit3 {
        from {
            background-position: 0 -512px;
        }

        to {
            background-position: -3328px -512px;
        }
    }
    @keyframes spirit4 {
        from {
            background-position: 0 -768px;
        }

        to {
            background-position: -3328px -768px;
        }
    }

    @keyframes spirit5 {
        from {
            background-position: 0 -1024px;
        }

        to {
            background-position: -3328px -1024px;
        }
    }

    @keyframes spirit6 {
        from {
            background-position: 0 -1280px;
        }

        to {
            background-position: -3328px -1280px;
        }
    }
    @keyframes spirit7 {
        from {
            background-position: 0 -1536px;
        }

        to {
            background-position: -3328px -1536px;
        }
    }
    @keyframes spirit8 {
        from {
            background-position: 0 -1792px;
        }

        to {
            background-position: -3328px -1792px;
        }
    }
    @keyframes spirit9 {
        from {
            background-position: 0 -2048px;
        }

        to {
            background-position: -3328px -2048px;
        }
    }
    @keyframes spirit10 {
        from {
            background-position: 0 -2304px;
        }

        to {
            background-position: -3328px -2304px;
        }
    }
    @keyframes spirit11 {
        from {
            background-position: 0 -2560px;
        }

        to {
            background-position: -3328px -2560px;
        }
    }
    @keyframes spirit12 {
        from {
            background-position: 0 -2816px;
        }

        to {
            background-position: -3328px -2816px;
        }
    }

    button {

            border: 0;
            background-color: #5151e7;
            border-radius: 10px;
            color: white;
            padding: 10px;
            cursor: pointer;
            margin: 10px 10px 10px 0;
        }
</style>
<body>
    <div id="app">
        <div class="flex-center">
            <div class="text-box flex-column flex-center">
                <div class="logo">
                    <img src="image/fc24-logo.svg"/>
                </div>
                <div class="update-box">
                    <div class="title">更新内容 (V2.4 - 2024/01/29)</div>
                    <div class="content">
                        1.新增洛杉矶FC和24年度最佳阵容<br/>
                        2.更新2月比赛日赛程<br/>
                        3.修复更衣室部分球队消失问题<br/>
                        4.更新冬窗转会<br/>
                        (补丁未包含新赛季球衣和脸补更新，如需下载可点击下方复制链接)<br/>
                        <!-- <span id="copy" style="color: #006dfc; cursor: pointer;">复制下载链接</span><br/> -->
                        <button onclick="copy()" id="copy">复制下载链接</button><br/>
                        <!-- <a href="https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&appChannel=share&inviteCode=21vucwL5FYw&contentID=1rDBJw&businessType=2&from=181174&shareSource=5&biz=ka">打开下载链接</a><br/> -->
                        祝大家新年快乐！
                    </div>
                </div>
            </div>
            <div class="img-box full-h">
                <img src="image/bg1.jpg"/>
            </div>
        </div>
        <div class="spirit"></div>
        <p class="author">MOD BY LAOSIJI</p>
    </div>

    <script>
        const copyText = document.querySelector('#copy');
        copyText.addEventListener('click', copy);
        function copy ()
        {
            let input = document.createElement('input');
            input.value = 'https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&appChannel=share&inviteCode=21vucwL5FYw&contentID=1rDBJw&businessType=2&from=181174&shareSource=5&biz=ka';
            document.body.appendChild(input);
            input.select();
            document.execCommand('copy');
            document.body.removeChild(input);
            copyText.innerText = '已复制，快去其他浏览器打开吧！';
        }
    </script>
</body>
</html>